home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 122
/
MOBICLIC 122.ISO
/
mac
/
DATA
/
DSS122
/
DSS122_05
/
DSS122_05.swf
/
scripts
/
frame_25
/
DoAction.as
Wrap
Text File
|
2009-12-14
|
2KB
|
86 lines
function rejouer()
{
delete BT_REJOUER.onRollOver;
delete BT_REJOUER.onRollOut;
delete BT_REJOUER.onDragOut;
delete BT_REJOUER.onPress;
BT_REJOUER.gotoAndPlay("E0");
delete BT_NEWQUIZ.onRollOver;
delete BT_NEWQUIZ.onRollOut;
delete BT_NEWQUIZ.onDragOut;
delete BT_NEWQUIZ.onPress;
BT_NEWQUIZ.gotoAndPlay("E0");
onEnterFrame = function()
{
trace(BT_NEWQUIZ._currentframe);
};
gQuestion = 1;
gScore = 0;
gereTextes.videLM();
anim_A._visible = 0;
gNoQuestion = gListeQuestions[0];
gotoAndStop("relance");
}
function finCommentFin()
{
anim_P._visible = 0;
anim_A = swfStocker["A_" + gModuleName + "_M_INTRO_A"];
if(anim_A !== undefined)
{
afficheClipPos(anim_A,100,150);
}
}
if(gNbQuestionsTotal > gNbQuestions)
{
BT_NEWQUIZ.gotoAndPlay("E1");
BT_NEWQUIZ.gotoAndPlay("E3");
onMcOver({mc:BT_NEWQUIZ,codeIB:"IB93",mcLabelOut:"E3"});
BT_NEWQUIZ.onPress = function()
{
onMcOut(this);
if(gListeQuestionsTotal.length < gNbQuestions)
{
initListeQuestions();
}
else
{
gListeQuestions = gListeQuestionsTotal.slice(0,gNbQuestions);
}
gListeQuestionTirage = duplicate(gListeQuestions);
rejouer();
};
}
BT_REJOUER.gotoAndPlay("E3");
onMcOver({mc:BT_REJOUER,codeIB:"IB92_1",mcLabelOut:"E3"});
BT_REJOUER.onPress = function()
{
onMcOut(this);
gListeQuestions = duplicate(gListeQuestionTirage);
i = gListeQuestionTirage.length - 1;
while(i >= 0)
{
gListeQuestionsTotal.unshift(gListeQuestionTirage[i]);
i--;
}
rejouer();
};
BT_REJOUER.gotoAndPlay("E3");
anim_P = swfStocker["A_" + gModuleName + "_BG_QUIZ"];
if(anim_P !== undefined)
{
afficheClipPos(anim_P,150,150);
}
if(gScore < gNbQuestions / 3)
{
joueSon({nomSon:"FIN_01",actionFin:"finCommentFin"});
}
else if(gScore < gNbQuestions / 3 * 2)
{
joueSon({nomSon:"FIN_02",actionFin:"finCommentFin"});
}
else
{
joueSon({nomSon:"FIN_03",actionFin:"finCommentFin"});
}
stop();